import request from "@/utils/request";

// 查询安消设备类型列表
export function listSafeDeviceType(query) {
  return request({
    url: "/business/safeDeviceType/list",
    method: "get",
    params: query,
  });
}

// 查询安消设备类型详细
export function getSafeDeviceType(safeDeviceTypeId) {
  return request({
    url: "business/safeDeviceType/" + safeDeviceTypeId,
    method: "get",
  });
}

// 新增安消设备类型
export function addSafeDeviceType(data) {
  return request({
    url: "business/safeDeviceType",
    method: "post",
    data: data,
  });
}

// 修改安消设备类型
export function updateSafeDeviceType(data) {
  return request({
    url: "business/safeDeviceType",
    method: "put",
    data: data,
  });
}

// 删除安消设备类型
export function delSafeDeviceType(safeDeviceTypeId) {
  return request({
    url: "business/safeDeviceType",
    method: "delete",
    data: safeDeviceTypeId,
  });
}
